#include<bits/stdc++.h>
#define ll long long
#define db double
#define Si set<int>::iterator
using namespace std;
int const N=1e5+5;
ll read()
{
    char x=getchar();
    ll s=0,f=1;
    while(x<'0'||x>'9')
    {
        if(x=='-')f=-f;
        x=getchar();
    }
    while('0'<=x&&x<='9')s=s*10+x-'0',x=getchar();
    return s*f;
}
int a[N];
int main()
{
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    int n,i,p=1;
    n=read();
    for(i=1;i<=n;i++)
    {
        a[i]=read();
    }
    sort(a+1,a+n+1);
    for(i=2;i<=n;i++)
    {
        if(a[p]<a[i])p++;
    }
    printf("%d\n",n-p+1);
    return 0;
}
